#include "stdafx.h"
#include "Pronunciation.h"
#define NEEDED_DATA_INCLUDE -3

class NeededData
{
public:
	NeededData()
	{
		m_Name = "";
		m_Birthday = "";
		m_IdentifyNumber = "";
		m_Pronunciation = "";
		m_ID = 0;
		m_IsValid = true;
	}
	~NeededData()
	{
	}
	CString m_Name;
	CString m_Birthday;
	CString m_IdentifyNumber;
	CString m_Pronunciation;
	int m_ID;
	void SetData(int ID,CString strName,CString strBirthday, CString strIdentifyNumber, int LastNameLength, Pronunciation* pPronunciation);
	void SetAsInvalid();
	bool GetValidation();
	friend bool operator <(const NeededData &nd1,const NeededData &nd2);
private:
	bool m_IsValid;
	void SetPronunciation(Pronunciation* pPronunciation,int iLength);
};
inline bool operator<( const NeededData &nd1,const NeededData &nd2 )
{
	return (nd1.m_ID < nd2.m_ID || (nd1.m_ID == nd2.m_ID && nd1.m_ID < nd2.m_ID));
}